package com.woniu.liuzhougov.authorityControl.controller;

import com.woniu.liuzhougov.authorityControl.pojo.UserStatus;
import com.woniu.liuzhougov.authorityControl.service.UserStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @version 1.0
 * @Author zhuxinpan
 * @ClassName UserStatusController
 * @Description 处理用户状态相关请求
 * @Date 2019/4/23 22:31
 */
@Controller
@RequestMapping("/userStatus")
public class UserStatusController {
    @Autowired
    private UserStatusService userStatusService;

    /**
     * @Author zhuxinpan
     * @Description 列出所有用户状态
     * @params []
     * @date 2019/4/23 22:37
     * @return java.util.List<com.woniu.liuzhougov.authorityControl.pojo.UserStatus>
     */
    @RequestMapping("/listUserStatuses")
    @ResponseBody
    public List<UserStatus> listUserStatuses() {
        return userStatusService.listUserStatuses();
    }
}
